<?php

/**
 * author : Tran Minh Toan
 */

class Application_Form_UserLogin extends Zend_Form{
    
    public function init(){
        $this->setName('User Login');
        //$this->setMethod('post');
        //$product = new Application_Form_Product();
        $user_id = new Zend_Form_Element_Hidden('user_id');
        
      
        $user_account = new Zend_Form_Element_Text('user_account');
            $user_account->setLabel('Tên tài khoản :')
                    ->setRequired(TRUE)
                    ->addValidator('NotEmpty');
            
        $user_password = new Zend_Form_Element_Password('user_password');
            $user_password->setLabel('Mật khẩu :')
                    ->setRequired(true)
                    ->addValidator('NotEmpty');        
        
        $checkbox_remember = new Zend_Form_Element_Checkbox('checkbox_remember');
            $checkbox_remember->setLabel('Remember me');
            
        $btn_submit = new Zend_Form_Element_Submit('submit');
        $btn_submit->setAttrib('id', 'submit');
        $btn_submit->setlabel('Đăng nhập');

        $btn_cancel = new Zend_Form_Element_Submit('cancel');
        $btn_cancel->setAttrib('id', 'cancel');
        $btn_cancel->setLabel('Hủy bỏ');
        
        $this->addElements(array($user_account, $user_password, $checkbox_remember, $user_id, $btn_submit, $btn_cancel));
           
    }
}

?>
